<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="forms_v1.html">Google Forms API</a> . <a href="forms_v1.forms.html">forms</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="forms_v1.forms.responses.html">responses()</a></code>
</p>
<p class="firstline">Returns the responses Resource.</p>

<p class="toc_element">
  <code><a href="forms_v1.forms.watches.html">watches()</a></code>
</p>
<p class="firstline">Returns the watches Resource.</p>

<p class="toc_element">
  <code><a href="#batchUpdate">batchUpdate(formId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Change the form with a batch of updates.</p>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#create">create(body=None, unpublished=None, x__xgafv=None)</a></code></p>
<p class="firstline">Create a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.</p>
<p class="toc_element">
  <code><a href="#get">get(formId, x__xgafv=None)</a></code></p>
<p class="firstline">Get a form.</p>
<p class="toc_element">
  <code><a href="#setPublishSettings">setPublishSettings(formId, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the publish settings of a form. Legacy forms aren't supported because they don't have the `publish_settings` field.</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="batchUpdate">batchUpdate(formId, body=None, x__xgafv=None)</code>
  <pre>Change the form with a batch of updates.

Args:
  formId: string, Required. The form ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # A batch of updates to perform on a form. All the specified updates are made or none of them are.
  &quot;includeFormInResponse&quot;: True or False, # Whether to return an updated version of the model in the response.
  &quot;requests&quot;: [ # Required. The update requests of this batch.
    { # The kinds of update requests that can be made.
      &quot;createItem&quot;: { # Create an item in a form. # Create a new item.
        &quot;item&quot;: { # A single item of the form. `kind` defines which kind of item it is. # Required. The item to create.
          &quot;description&quot;: &quot;A String&quot;, # The description of the item.
          &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
            &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
          },
          &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
          &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
          },
          &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
            &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
              &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
                &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                  { # An option for a Choice question.
                    &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                    &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                    &quot;image&quot;: { # Data representing an image. # Display image as an option.
                      &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                      &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                      &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                        &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                        &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                      },
                      &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                    },
                    &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                  },
                ],
                &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
              },
              &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
            },
            &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
            &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
              { # Any question. The specific type of question is known by its `kind`.
                &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
                  &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                    { # An option for a Choice question.
                      &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                      &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                      &quot;image&quot;: { # Data representing an image. # Display image as an option.
                        &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                        &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                        &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                          &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                          &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                        },
                        &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                      },
                      &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                      &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                    },
                  ],
                  &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                  &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
                },
                &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
                  &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
                  &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
                },
                &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
                  &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
                  &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
                  &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
                  &quot;types&quot;: [ # File types accepted by this question.
                    &quot;A String&quot;,
                  ],
                },
                &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
                  &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                    &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                      { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                        &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                      },
                    ],
                  },
                  &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                  &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
                  &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                  &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                },
                &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
                &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
                  &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
                  &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
                },
                &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
                &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
                  &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
                },
                &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
                  &quot;high&quot;: 42, # Required. The highest possible value for the scale.
                  &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
                  &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
                  &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
                },
                &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
                  &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
                },
                &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
                  &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
                },
              },
            ],
          },
          &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
            &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
            &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
              &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
                &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                  { # An option for a Choice question.
                    &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                    &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                    &quot;image&quot;: { # Data representing an image. # Display image as an option.
                      &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                      &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                      &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                        &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                        &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                      },
                      &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                    },
                    &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                  },
                ],
                &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
              },
              &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
                &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
                &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
              },
              &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
                &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
                &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
                &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
                &quot;types&quot;: [ # File types accepted by this question.
                  &quot;A String&quot;,
                ],
              },
              &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
                &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                  &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                    { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                      &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                    },
                  ],
                },
                &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
                &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
              },
              &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
              &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
                &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
                &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
              },
              &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
              &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
                &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
              },
              &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
                &quot;high&quot;: 42, # Required. The highest possible value for the scale.
                &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
                &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
                &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
              },
              &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
                &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
              },
              &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
                &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
              },
            },
          },
          &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
          },
          &quot;title&quot;: &quot;A String&quot;, # The title of the item.
          &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
            &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
            &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
              &quot;properties&quot;: { # Properties of the media. # Properties of a video.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
            },
          },
        },
        &quot;location&quot;: { # A specific location in a form. # Required. Where to place the new item.
          &quot;index&quot;: 42, # The index of an item in the form. This must be in the range [0..*N*), where *N* is the number of items in the form.
        },
      },
      &quot;deleteItem&quot;: { # Delete an item in a form. # Delete an item.
        &quot;location&quot;: { # A specific location in a form. # Required. The location of the item to delete.
          &quot;index&quot;: 42, # The index of an item in the form. This must be in the range [0..*N*), where *N* is the number of items in the form.
        },
      },
      &quot;moveItem&quot;: { # Move an item in a form. # Move an item to a specified location.
        &quot;newLocation&quot;: { # A specific location in a form. # Required. The new location for the item.
          &quot;index&quot;: 42, # The index of an item in the form. This must be in the range [0..*N*), where *N* is the number of items in the form.
        },
        &quot;originalLocation&quot;: { # A specific location in a form. # Required. The location of the item to move.
          &quot;index&quot;: 42, # The index of an item in the form. This must be in the range [0..*N*), where *N* is the number of items in the form.
        },
      },
      &quot;updateFormInfo&quot;: { # Update Form&#x27;s Info. # Update Form&#x27;s Info.
        &quot;info&quot;: { # The general information for a form. # The info to update.
          &quot;description&quot;: &quot;A String&quot;, # The description of the form.
          &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document which is visible in Drive. If Info.title is empty, `document_title` may appear in its place in the Google Forms UI and be visible to responders. `document_title` can be set on create, but cannot be modified by a batchUpdate request. Please use the [Google Drive API](https://developers.google.com/drive/api/v3/reference/files/update) if you need to programmatically update `document_title`.
          &quot;title&quot;: &quot;A String&quot;, # Required. The title of the form which is visible to responders.
        },
        &quot;updateMask&quot;: &quot;A String&quot;, # Required. Only values named in this mask are changed. At least one field must be specified. The root `info` is implied and should not be specified. A single `&quot;*&quot;` can be used as short-hand for updating every field.
      },
      &quot;updateItem&quot;: { # Update an item in a form. # Update an item.
        &quot;item&quot;: { # A single item of the form. `kind` defines which kind of item it is. # Required. New values for the item. Note that item and question IDs are used if they are provided (and are in the field mask). If an ID is blank (and in the field mask) a new ID is generated. This means you can modify an item by getting the form via forms.get, modifying your local copy of that item to be how you want it, and using UpdateItemRequest to write it back, with the IDs being the same (or not in the field mask).
          &quot;description&quot;: &quot;A String&quot;, # The description of the item.
          &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
            &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
          },
          &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
          &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
          },
          &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
            &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
              &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
                &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                  { # An option for a Choice question.
                    &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                    &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                    &quot;image&quot;: { # Data representing an image. # Display image as an option.
                      &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                      &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                      &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                        &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                        &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                      },
                      &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                    },
                    &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                  },
                ],
                &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
              },
              &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
            },
            &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
            &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
              { # Any question. The specific type of question is known by its `kind`.
                &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
                  &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                    { # An option for a Choice question.
                      &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                      &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                      &quot;image&quot;: { # Data representing an image. # Display image as an option.
                        &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                        &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                        &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                          &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                          &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                        },
                        &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                      },
                      &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                      &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                    },
                  ],
                  &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                  &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
                },
                &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
                  &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
                  &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
                },
                &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
                  &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
                  &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
                  &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
                  &quot;types&quot;: [ # File types accepted by this question.
                    &quot;A String&quot;,
                  ],
                },
                &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
                  &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                    &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                      { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                        &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                      },
                    ],
                  },
                  &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                  &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
                  &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                  &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                    &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                      { # Supplementary material to the feedback.
                        &quot;link&quot;: { # Link for text. # Text feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                          &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                        },
                        &quot;video&quot;: { # Link to a video. # Video feedback.
                          &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                          &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                        },
                      },
                    ],
                    &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                  },
                },
                &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
                &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
                  &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
                  &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
                },
                &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
                &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
                  &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
                },
                &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
                  &quot;high&quot;: 42, # Required. The highest possible value for the scale.
                  &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
                  &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
                  &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
                },
                &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
                  &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
                },
                &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
                  &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
                },
              },
            ],
          },
          &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
            &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
              &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
              &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
              &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
            },
            &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
              &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
                &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                  { # An option for a Choice question.
                    &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                    &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                    &quot;image&quot;: { # Data representing an image. # Display image as an option.
                      &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                      &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                      &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                        &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                        &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                      },
                      &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                    },
                    &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                  },
                ],
                &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
              },
              &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
                &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
                &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
              },
              &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
                &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
                &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
                &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
                &quot;types&quot;: [ # File types accepted by this question.
                  &quot;A String&quot;,
                ],
              },
              &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
                &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                  &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                    { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                      &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                    },
                  ],
                },
                &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
                &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
              },
              &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
              &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
                &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
                &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
              },
              &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
              &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
                &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
              },
              &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
                &quot;high&quot;: 42, # Required. The highest possible value for the scale.
                &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
                &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
                &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
              },
              &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
                &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
              },
              &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
                &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
              },
            },
          },
          &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
          },
          &quot;title&quot;: &quot;A String&quot;, # The title of the item.
          &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
            &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
            &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
              &quot;properties&quot;: { # Properties of the media. # Properties of a video.
                &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
              },
              &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
            },
          },
        },
        &quot;location&quot;: { # A specific location in a form. # Required. The location identifying the item to update.
          &quot;index&quot;: 42, # The index of an item in the form. This must be in the range [0..*N*), where *N* is the number of items in the form.
        },
        &quot;updateMask&quot;: &quot;A String&quot;, # Required. Only values named in this mask are changed.
      },
      &quot;updateSettings&quot;: { # Update Form&#x27;s FormSettings. # Updates the Form&#x27;s settings.
        &quot;settings&quot;: { # A form&#x27;s settings. # Required. The settings to update with.
          &quot;emailCollectionType&quot;: &quot;A String&quot;, # Optional. The setting that determines whether the form collects email addresses from respondents.
          &quot;quizSettings&quot;: { # Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. # Settings related to quiz forms and grading.
            &quot;isQuiz&quot;: True or False, # Whether this form is a quiz or not. When true, responses are graded based on question Grading. Upon setting to false, all question Grading is deleted.
          },
        },
        &quot;updateMask&quot;: &quot;A String&quot;, # Required. Only values named in this mask are changed. At least one field must be specified. The root `settings` is implied and should not be specified. A single `&quot;*&quot;` can be used as short-hand for updating every field.
      },
    },
  ],
  &quot;writeControl&quot;: { # Provides control over how write requests are executed. # Provides control over how write requests are executed.
    &quot;requiredRevisionId&quot;: &quot;A String&quot;, # The revision ID of the form that the write request is applied to. If this is not the latest revision of the form, the request is not processed and returns a 400 bad request error.
    &quot;targetRevisionId&quot;: &quot;A String&quot;, # The target revision ID of the form that the write request is applied to. If changes have occurred after this revision, the changes in this update request are transformed against those changes. This results in a new revision of the form that incorporates both the changes in the request and the intervening changes, with the server resolving conflicting changes. The target revision ID may only be used to write to recent versions of a form. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 (Bad Request Error). The request may be retried after reading the latest version of the form. In most cases a target revision ID remains valid for several minutes after it is read, but for frequently-edited forms this window may be shorter.
  },
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response to a BatchUpdateFormRequest.
  &quot;form&quot;: { # A Google Forms document. A form is created in Drive, and deleting a form or changing its access protections is done via the [Drive API](https://developers.google.com/drive/api/v3/about-sdk). # Based on the bool request field `include_form_in_response`, a form with all applied mutations/updates is returned or not. This may be later than the revision ID created by these changes.
    &quot;formId&quot;: &quot;A String&quot;, # Output only. The form ID.
    &quot;info&quot;: { # The general information for a form. # Required. The title and description of the form.
      &quot;description&quot;: &quot;A String&quot;, # The description of the form.
      &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document which is visible in Drive. If Info.title is empty, `document_title` may appear in its place in the Google Forms UI and be visible to responders. `document_title` can be set on create, but cannot be modified by a batchUpdate request. Please use the [Google Drive API](https://developers.google.com/drive/api/v3/reference/files/update) if you need to programmatically update `document_title`.
      &quot;title&quot;: &quot;A String&quot;, # Required. The title of the form which is visible to responders.
    },
    &quot;items&quot;: [ # Required. A list of the form&#x27;s items, which can include section headers, questions, embedded media, etc.
      { # A single item of the form. `kind` defines which kind of item it is.
        &quot;description&quot;: &quot;A String&quot;, # The description of the item.
        &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
          &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
            &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
            &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
            &quot;properties&quot;: { # Properties of the media. # Properties of an image.
              &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
              &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
            },
            &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
          },
        },
        &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
        &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
        },
        &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
          &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
            &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
              &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                { # An option for a Choice question.
                  &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                  &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                  &quot;image&quot;: { # Data representing an image. # Display image as an option.
                    &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                    &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                    &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                      &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                      &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                    },
                    &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                  },
                  &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                },
              ],
              &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
              &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
            },
            &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
          },
          &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
            &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
            &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
            &quot;properties&quot;: { # Properties of the media. # Properties of an image.
              &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
              &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
            },
            &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
          },
          &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
            { # Any question. The specific type of question is known by its `kind`.
              &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
                &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                  { # An option for a Choice question.
                    &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                    &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                    &quot;image&quot;: { # Data representing an image. # Display image as an option.
                      &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                      &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                      &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                        &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                        &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                      },
                      &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                    },
                    &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                  },
                ],
                &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
                &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
              },
              &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
                &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
                &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
              },
              &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
                &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
                &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
                &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
                &quot;types&quot;: [ # File types accepted by this question.
                  &quot;A String&quot;,
                ],
              },
              &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
                &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                  &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                    { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                      &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                    },
                  ],
                },
                &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
                &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
                &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                  &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                    { # Supplementary material to the feedback.
                      &quot;link&quot;: { # Link for text. # Text feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                        &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                      },
                      &quot;video&quot;: { # Link to a video. # Video feedback.
                        &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                        &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                      },
                    },
                  ],
                  &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
                },
              },
              &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
              &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
                &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
                &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
              },
              &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
              &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
                &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
              },
              &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
                &quot;high&quot;: 42, # Required. The highest possible value for the scale.
                &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
                &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
                &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
              },
              &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
                &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
              },
              &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
                &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
              },
            },
          ],
        },
        &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
          &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
            &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
            &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
            &quot;properties&quot;: { # Properties of the media. # Properties of an image.
              &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
              &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
            },
            &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
          },
          &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
            &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
              &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                { # An option for a Choice question.
                  &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                  &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                  &quot;image&quot;: { # Data representing an image. # Display image as an option.
                    &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                    &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                    &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                      &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                      &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                    },
                    &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                  },
                  &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                },
              ],
              &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
              &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
            },
            &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
              &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
              &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
            },
            &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
              &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
              &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
              &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
              &quot;types&quot;: [ # File types accepted by this question.
                &quot;A String&quot;,
              ],
            },
            &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
              &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                  { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                  },
                ],
              },
              &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
              &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
            },
            &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
            &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
              &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
              &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
            },
            &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
            &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
              &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
            },
            &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
              &quot;high&quot;: 42, # Required. The highest possible value for the scale.
              &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
              &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
              &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
            },
            &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
              &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
            },
            &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
              &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
            },
          },
        },
        &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
        },
        &quot;title&quot;: &quot;A String&quot;, # The title of the item.
        &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
          &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
          &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
            &quot;properties&quot;: { # Properties of the media. # Properties of a video.
              &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
              &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
            },
            &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
          },
        },
      },
    ],
    &quot;linkedSheetId&quot;: &quot;A String&quot;, # Output only. The ID of the linked Google Sheet which is accumulating responses from this Form (if such a Sheet exists).
    &quot;publishSettings&quot;: { # The publishing settings of a form. # Output only. The publishing settings for a form. This field isn&#x27;t set for legacy forms because they don&#x27;t have the publish_settings field. All newly created forms support publish settings. Forms with publish_settings value set can call SetPublishSettings API to publish or unpublish the form.
      &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
        &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
        &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
      },
    },
    &quot;responderUri&quot;: &quot;A String&quot;, # Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have publish_settings value set, this is the published form URI.
    &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision ID of the form. Used in the WriteControl in update requests to identify the revision on which the changes are based. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a changed ID (for the same form and user) usually means the form *content* has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Form content excludes form metadata, including: * sharing settings (who has access to the form) * publish_settings (if the form supports publishing and if it is published)
    &quot;settings&quot;: { # A form&#x27;s settings. # The form&#x27;s settings. This must be updated with UpdateSettingsRequest; it is ignored during CreateForm and UpdateFormInfoRequest.
      &quot;emailCollectionType&quot;: &quot;A String&quot;, # Optional. The setting that determines whether the form collects email addresses from respondents.
      &quot;quizSettings&quot;: { # Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. # Settings related to quiz forms and grading.
        &quot;isQuiz&quot;: True or False, # Whether this form is a quiz or not. When true, responses are graded based on question Grading. Upon setting to false, all question Grading is deleted.
      },
    },
  },
  &quot;replies&quot;: [ # The reply of the updates. This maps 1:1 with the update requests, although replies to some requests may be empty.
    { # A single response from an update.
      &quot;createItem&quot;: { # The result of creating an item. # The result of creating an item.
        &quot;itemId&quot;: &quot;A String&quot;, # The ID of the created item.
        &quot;questionId&quot;: [ # The ID of the question created as part of this item, for a question group it lists IDs of all the questions created for this item.
          &quot;A String&quot;,
        ],
      },
    },
  ],
  &quot;writeControl&quot;: { # Provides control over how write requests are executed. # The updated write control after applying the request.
    &quot;requiredRevisionId&quot;: &quot;A String&quot;, # The revision ID of the form that the write request is applied to. If this is not the latest revision of the form, the request is not processed and returns a 400 bad request error.
    &quot;targetRevisionId&quot;: &quot;A String&quot;, # The target revision ID of the form that the write request is applied to. If changes have occurred after this revision, the changes in this update request are transformed against those changes. This results in a new revision of the form that incorporates both the changes in the request and the intervening changes, with the server resolving conflicting changes. The target revision ID may only be used to write to recent versions of a form. If the target revision is too far behind the latest revision, the request is not processed and returns a 400 (Bad Request Error). The request may be retried after reading the latest version of the form. In most cases a target revision ID remains valid for several minutes after it is read, but for frequently-edited forms this window may be shorter.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="create">create(body=None, unpublished=None, x__xgafv=None)</code>
  <pre>Create a new form using the title given in the provided form message in the request. *Important:* Only the form.info.title and form.info.document_title fields are copied to the new form. All other fields including the form description, items and settings are disallowed. To create a new form and add items, you must first call forms.create to create an empty form with a title and (optional) document title, and then call forms.update to add the items.

Args:
  body: object, The request body.
    The object takes the form of:

{ # A Google Forms document. A form is created in Drive, and deleting a form or changing its access protections is done via the [Drive API](https://developers.google.com/drive/api/v3/about-sdk).
  &quot;formId&quot;: &quot;A String&quot;, # Output only. The form ID.
  &quot;info&quot;: { # The general information for a form. # Required. The title and description of the form.
    &quot;description&quot;: &quot;A String&quot;, # The description of the form.
    &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document which is visible in Drive. If Info.title is empty, `document_title` may appear in its place in the Google Forms UI and be visible to responders. `document_title` can be set on create, but cannot be modified by a batchUpdate request. Please use the [Google Drive API](https://developers.google.com/drive/api/v3/reference/files/update) if you need to programmatically update `document_title`.
    &quot;title&quot;: &quot;A String&quot;, # Required. The title of the form which is visible to responders.
  },
  &quot;items&quot;: [ # Required. A list of the form&#x27;s items, which can include section headers, questions, embedded media, etc.
    { # A single item of the form. `kind` defines which kind of item it is.
      &quot;description&quot;: &quot;A String&quot;, # The description of the item.
      &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
        &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
      },
      &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
      &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
      },
      &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
        &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
          &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
        },
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
          { # Any question. The specific type of question is known by its `kind`.
            &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
              &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                { # An option for a Choice question.
                  &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                  &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                  &quot;image&quot;: { # Data representing an image. # Display image as an option.
                    &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                    &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                    &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                      &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                      &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                    },
                    &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                  },
                  &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                },
              ],
              &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
              &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
            },
            &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
              &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
              &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
            },
            &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
              &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
              &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
              &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
              &quot;types&quot;: [ # File types accepted by this question.
                &quot;A String&quot;,
              ],
            },
            &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
              &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                  { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                  },
                ],
              },
              &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
              &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
            },
            &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
            &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
              &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
              &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
            },
            &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
            &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
              &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
            },
            &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
              &quot;high&quot;: 42, # Required. The highest possible value for the scale.
              &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
              &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
              &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
            },
            &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
              &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
            },
            &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
              &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
            },
          },
        ],
      },
      &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
          &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
            &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
            &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
          },
          &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
            &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
            &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
            &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
            &quot;types&quot;: [ # File types accepted by this question.
              &quot;A String&quot;,
            ],
          },
          &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
            &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
              &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                },
              ],
            },
            &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
            &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
          },
          &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
          &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
            &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
            &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
          },
          &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
          &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
            &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
          },
          &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
            &quot;high&quot;: 42, # Required. The highest possible value for the scale.
            &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
            &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
            &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
          },
          &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
            &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
          },
          &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
            &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
          },
        },
      },
      &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
      },
      &quot;title&quot;: &quot;A String&quot;, # The title of the item.
      &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
        &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
        &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
          &quot;properties&quot;: { # Properties of the media. # Properties of a video.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
        },
      },
    },
  ],
  &quot;linkedSheetId&quot;: &quot;A String&quot;, # Output only. The ID of the linked Google Sheet which is accumulating responses from this Form (if such a Sheet exists).
  &quot;publishSettings&quot;: { # The publishing settings of a form. # Output only. The publishing settings for a form. This field isn&#x27;t set for legacy forms because they don&#x27;t have the publish_settings field. All newly created forms support publish settings. Forms with publish_settings value set can call SetPublishSettings API to publish or unpublish the form.
    &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
      &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
      &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
    },
  },
  &quot;responderUri&quot;: &quot;A String&quot;, # Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have publish_settings value set, this is the published form URI.
  &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision ID of the form. Used in the WriteControl in update requests to identify the revision on which the changes are based. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a changed ID (for the same form and user) usually means the form *content* has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Form content excludes form metadata, including: * sharing settings (who has access to the form) * publish_settings (if the form supports publishing and if it is published)
  &quot;settings&quot;: { # A form&#x27;s settings. # The form&#x27;s settings. This must be updated with UpdateSettingsRequest; it is ignored during CreateForm and UpdateFormInfoRequest.
    &quot;emailCollectionType&quot;: &quot;A String&quot;, # Optional. The setting that determines whether the form collects email addresses from respondents.
    &quot;quizSettings&quot;: { # Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. # Settings related to quiz forms and grading.
      &quot;isQuiz&quot;: True or False, # Whether this form is a quiz or not. When true, responses are graded based on question Grading. Upon setting to false, all question Grading is deleted.
    },
  },
}

  unpublished: boolean, Optional. Whether the form is unpublished. If set to `true`, the form doesn&#x27;t accept responses. If set to `false` or unset, the form is published and accepts responses.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A Google Forms document. A form is created in Drive, and deleting a form or changing its access protections is done via the [Drive API](https://developers.google.com/drive/api/v3/about-sdk).
  &quot;formId&quot;: &quot;A String&quot;, # Output only. The form ID.
  &quot;info&quot;: { # The general information for a form. # Required. The title and description of the form.
    &quot;description&quot;: &quot;A String&quot;, # The description of the form.
    &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document which is visible in Drive. If Info.title is empty, `document_title` may appear in its place in the Google Forms UI and be visible to responders. `document_title` can be set on create, but cannot be modified by a batchUpdate request. Please use the [Google Drive API](https://developers.google.com/drive/api/v3/reference/files/update) if you need to programmatically update `document_title`.
    &quot;title&quot;: &quot;A String&quot;, # Required. The title of the form which is visible to responders.
  },
  &quot;items&quot;: [ # Required. A list of the form&#x27;s items, which can include section headers, questions, embedded media, etc.
    { # A single item of the form. `kind` defines which kind of item it is.
      &quot;description&quot;: &quot;A String&quot;, # The description of the item.
      &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
        &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
      },
      &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
      &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
      },
      &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
        &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
          &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
        },
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
          { # Any question. The specific type of question is known by its `kind`.
            &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
              &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                { # An option for a Choice question.
                  &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                  &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                  &quot;image&quot;: { # Data representing an image. # Display image as an option.
                    &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                    &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                    &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                      &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                      &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                    },
                    &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                  },
                  &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                },
              ],
              &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
              &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
            },
            &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
              &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
              &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
            },
            &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
              &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
              &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
              &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
              &quot;types&quot;: [ # File types accepted by this question.
                &quot;A String&quot;,
              ],
            },
            &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
              &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                  { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                  },
                ],
              },
              &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
              &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
            },
            &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
            &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
              &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
              &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
            },
            &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
            &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
              &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
            },
            &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
              &quot;high&quot;: 42, # Required. The highest possible value for the scale.
              &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
              &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
              &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
            },
            &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
              &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
            },
            &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
              &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
            },
          },
        ],
      },
      &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
          &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
            &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
            &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
          },
          &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
            &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
            &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
            &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
            &quot;types&quot;: [ # File types accepted by this question.
              &quot;A String&quot;,
            ],
          },
          &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
            &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
              &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                },
              ],
            },
            &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
            &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
          },
          &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
          &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
            &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
            &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
          },
          &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
          &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
            &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
          },
          &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
            &quot;high&quot;: 42, # Required. The highest possible value for the scale.
            &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
            &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
            &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
          },
          &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
            &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
          },
          &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
            &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
          },
        },
      },
      &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
      },
      &quot;title&quot;: &quot;A String&quot;, # The title of the item.
      &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
        &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
        &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
          &quot;properties&quot;: { # Properties of the media. # Properties of a video.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
        },
      },
    },
  ],
  &quot;linkedSheetId&quot;: &quot;A String&quot;, # Output only. The ID of the linked Google Sheet which is accumulating responses from this Form (if such a Sheet exists).
  &quot;publishSettings&quot;: { # The publishing settings of a form. # Output only. The publishing settings for a form. This field isn&#x27;t set for legacy forms because they don&#x27;t have the publish_settings field. All newly created forms support publish settings. Forms with publish_settings value set can call SetPublishSettings API to publish or unpublish the form.
    &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
      &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
      &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
    },
  },
  &quot;responderUri&quot;: &quot;A String&quot;, # Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have publish_settings value set, this is the published form URI.
  &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision ID of the form. Used in the WriteControl in update requests to identify the revision on which the changes are based. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a changed ID (for the same form and user) usually means the form *content* has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Form content excludes form metadata, including: * sharing settings (who has access to the form) * publish_settings (if the form supports publishing and if it is published)
  &quot;settings&quot;: { # A form&#x27;s settings. # The form&#x27;s settings. This must be updated with UpdateSettingsRequest; it is ignored during CreateForm and UpdateFormInfoRequest.
    &quot;emailCollectionType&quot;: &quot;A String&quot;, # Optional. The setting that determines whether the form collects email addresses from respondents.
    &quot;quizSettings&quot;: { # Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. # Settings related to quiz forms and grading.
      &quot;isQuiz&quot;: True or False, # Whether this form is a quiz or not. When true, responses are graded based on question Grading. Upon setting to false, all question Grading is deleted.
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="get">get(formId, x__xgafv=None)</code>
  <pre>Get a form.

Args:
  formId: string, Required. The form ID. (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # A Google Forms document. A form is created in Drive, and deleting a form or changing its access protections is done via the [Drive API](https://developers.google.com/drive/api/v3/about-sdk).
  &quot;formId&quot;: &quot;A String&quot;, # Output only. The form ID.
  &quot;info&quot;: { # The general information for a form. # Required. The title and description of the form.
    &quot;description&quot;: &quot;A String&quot;, # The description of the form.
    &quot;documentTitle&quot;: &quot;A String&quot;, # Output only. The title of the document which is visible in Drive. If Info.title is empty, `document_title` may appear in its place in the Google Forms UI and be visible to responders. `document_title` can be set on create, but cannot be modified by a batchUpdate request. Please use the [Google Drive API](https://developers.google.com/drive/api/v3/reference/files/update) if you need to programmatically update `document_title`.
    &quot;title&quot;: &quot;A String&quot;, # Required. The title of the form which is visible to responders.
  },
  &quot;items&quot;: [ # Required. A list of the form&#x27;s items, which can include section headers, questions, embedded media, etc.
    { # A single item of the form. `kind` defines which kind of item it is.
      &quot;description&quot;: &quot;A String&quot;, # The description of the item.
      &quot;imageItem&quot;: { # An item containing an image. # Displays an image on the page.
        &quot;image&quot;: { # Data representing an image. # Required. The image displayed in the item.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
      },
      &quot;itemId&quot;: &quot;A String&quot;, # The item ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
      &quot;pageBreakItem&quot;: { # A page break. The title and description of this item are shown at the top of the new page. # Starts a new page with a title.
      },
      &quot;questionGroupItem&quot;: { # Defines a question that comprises multiple questions grouped together. # Poses one or more questions to the user with a single major prompt.
        &quot;grid&quot;: { # A grid of choices (radio or check boxes) with each row constituting a separate question. Each row has the same choices, which are shown as the columns. # The question group is a grid with rows of multiple choice questions that share the same options. When `grid` is set, all questions in the group must be of kind `row`.
          &quot;columns&quot;: { # A radio/checkbox/dropdown question. # Required. The choices shared by each question in the grid. In other words, the values of the columns. Only `CHECK_BOX` and `RADIO` choices are allowed.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;shuffleQuestions&quot;: True or False, # If `true`, the questions are randomly ordered. In other words, the rows appear in a different order for every respondent.
        },
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question group above the specific questions.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;questions&quot;: [ # Required. A list of questions that belong in this question group. A question must only belong to one group. The `kind` of the group may affect what types of questions are allowed.
          { # Any question. The specific type of question is known by its `kind`.
            &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
              &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
                { # An option for a Choice question.
                  &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                  &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                  &quot;image&quot;: { # Data representing an image. # Display image as an option.
                    &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                    &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                    &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                      &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                      &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                    },
                    &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                  },
                  &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
                },
              ],
              &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
              &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
            },
            &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
              &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
              &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
            },
            &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
              &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
              &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
              &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
              &quot;types&quot;: [ # File types accepted by this question.
                &quot;A String&quot;,
              ],
            },
            &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
              &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
                &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                  { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                    &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                  },
                ],
              },
              &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
              &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
              &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
                &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                  { # Supplementary material to the feedback.
                    &quot;link&quot;: { # Link for text. # Text feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                      &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                    },
                    &quot;video&quot;: { # Link to a video. # Video feedback.
                      &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                      &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                    },
                  },
                ],
                &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
              },
            },
            &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
            &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
              &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
              &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
            },
            &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
            &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
              &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
            },
            &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
              &quot;high&quot;: 42, # Required. The highest possible value for the scale.
              &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
              &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
              &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
            },
            &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
              &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
            },
            &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
              &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
            },
          },
        ],
      },
      &quot;questionItem&quot;: { # A form item containing a single question. # Poses a question to the user.
        &quot;image&quot;: { # Data representing an image. # The image displayed within the question.
          &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
          &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
          &quot;properties&quot;: { # Properties of the media. # Properties of an image.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
        },
        &quot;question&quot;: { # Any question. The specific type of question is known by its `kind`. # Required. The displayed question.
          &quot;choiceQuestion&quot;: { # A radio/checkbox/dropdown question. # A respondent can choose from a pre-defined set of options.
            &quot;options&quot;: [ # Required. List of options that a respondent must choose from.
              { # An option for a Choice question.
                &quot;goToAction&quot;: &quot;A String&quot;, # Section navigation type.
                &quot;goToSectionId&quot;: &quot;A String&quot;, # Item ID of section header to go to.
                &quot;image&quot;: { # Data representing an image. # Display image as an option.
                  &quot;altText&quot;: &quot;A String&quot;, # A description of the image that is shown on hover and read by screenreaders.
                  &quot;contentUri&quot;: &quot;A String&quot;, # Output only. A URI from which you can download the image; this is valid only for a limited time.
                  &quot;properties&quot;: { # Properties of the media. # Properties of an image.
                    &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
                    &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
                  },
                  &quot;sourceUri&quot;: &quot;A String&quot;, # Input only. The source URI is the URI used to insert the image. The source URI can be empty when fetched.
                },
                &quot;isOther&quot;: True or False, # Whether the option is &quot;other&quot;. Currently only applies to `RADIO` and `CHECKBOX` choice types, but is not allowed in a QuestionGroupItem.
                &quot;value&quot;: &quot;A String&quot;, # Required. The choice as presented to the user.
              },
            ],
            &quot;shuffle&quot;: True or False, # Whether the options should be displayed in random order for different instances of the quiz. This is often used to prevent cheating by respondents who might be looking at another respondent&#x27;s screen, or to address bias in a survey that might be introduced by always putting the same options first or last.
            &quot;type&quot;: &quot;A String&quot;, # Required. The type of choice question.
          },
          &quot;dateQuestion&quot;: { # A date question. Date questions default to just month + day. # A respondent can enter a date.
            &quot;includeTime&quot;: True or False, # Whether to include the time as part of the question.
            &quot;includeYear&quot;: True or False, # Whether to include the year as part of the question.
          },
          &quot;fileUploadQuestion&quot;: { # A file upload question. The API currently does not support creating file upload questions. # A respondent can upload one or more files.
            &quot;folderId&quot;: &quot;A String&quot;, # Required. The ID of the Drive folder where uploaded files are stored.
            &quot;maxFileSize&quot;: &quot;A String&quot;, # Maximum number of bytes allowed for any single file uploaded to this question.
            &quot;maxFiles&quot;: 42, # Maximum number of files that can be uploaded for this question in a single response.
            &quot;types&quot;: [ # File types accepted by this question.
              &quot;A String&quot;,
            ],
          },
          &quot;grading&quot;: { # Grading for a single question # Grading setup for the question.
            &quot;correctAnswers&quot;: { # The answer key for a question. # Required. The answer key for the question. Responses are automatically graded based on this field.
              &quot;answers&quot;: [ # A list of correct answers. A quiz response can be automatically graded based on these answers. For single-valued questions, a response is marked correct if it matches any value in this list (in other words, multiple correct answers are possible). For multiple-valued (`CHECKBOX`) questions, a response is marked correct if it contains exactly the values in this list.
                { # A single correct answer for a question. For multiple-valued (`CHECKBOX`) questions, several `CorrectAnswer`s may be needed to represent a single correct response option.
                  &quot;value&quot;: &quot;A String&quot;, # Required. The correct answer value. See the documentation for TextAnswer.value for details on how various value types are formatted.
                },
              ],
            },
            &quot;generalFeedback&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for all answers. This is commonly used for short answer questions when a quiz owner wants to quickly give respondents some sense of whether they answered the question correctly before they&#x27;ve had a chance to officially grade the response. General feedback cannot be set for automatically graded multiple choice questions.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;pointValue&quot;: 42, # Required. The maximum number of points a respondent can automatically get for a correct answer. This must not be negative.
            &quot;whenRight&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for correct responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
            &quot;whenWrong&quot;: { # Feedback for a respondent about their response to a question. # The feedback displayed for incorrect responses. This feedback can only be set for multiple choice questions that have correct answers provided.
              &quot;material&quot;: [ # Additional information provided as part of the feedback, often used to point the respondent to more reading and resources.
                { # Supplementary material to the feedback.
                  &quot;link&quot;: { # Link for text. # Text feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. Display text for the URI.
                    &quot;uri&quot;: &quot;A String&quot;, # Required. The URI.
                  },
                  &quot;video&quot;: { # Link to a video. # Video feedback.
                    &quot;displayText&quot;: &quot;A String&quot;, # Required. The display text for the link.
                    &quot;youtubeUri&quot;: &quot;A String&quot;, # The URI of a YouTube video.
                  },
                },
              ],
              &quot;text&quot;: &quot;A String&quot;, # Required. The main text of the feedback.
            },
          },
          &quot;questionId&quot;: &quot;A String&quot;, # Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
          &quot;ratingQuestion&quot;: { # A rating question. The user has a range of icons to choose from. # A respondent can choose a rating from a pre-defined set of icons.
            &quot;iconType&quot;: &quot;A String&quot;, # Required. The icon type to use for the rating.
            &quot;ratingScaleLevel&quot;: 42, # Required. The rating scale level of the rating question.
          },
          &quot;required&quot;: True or False, # Whether the question must be answered in order for a respondent to submit their response.
          &quot;rowQuestion&quot;: { # Configuration for a question that is part of a question group. # A row of a QuestionGroupItem.
            &quot;title&quot;: &quot;A String&quot;, # Required. The title for the single row in the QuestionGroupItem.
          },
          &quot;scaleQuestion&quot;: { # A scale question. The user has a range of numeric values to choose from. # A respondent can choose a number from a range.
            &quot;high&quot;: 42, # Required. The highest possible value for the scale.
            &quot;highLabel&quot;: &quot;A String&quot;, # The label to display describing the highest point on the scale.
            &quot;low&quot;: 42, # Required. The lowest possible value for the scale.
            &quot;lowLabel&quot;: &quot;A String&quot;, # The label to display describing the lowest point on the scale.
          },
          &quot;textQuestion&quot;: { # A text-based question. # A respondent can enter a free text response.
            &quot;paragraph&quot;: True or False, # Whether the question is a paragraph question or not. If not, the question is a short text question.
          },
          &quot;timeQuestion&quot;: { # A time question. # A respondent can enter a time.
            &quot;duration&quot;: True or False, # `true` if the question is about an elapsed time. Otherwise it is about a time of day.
          },
        },
      },
      &quot;textItem&quot;: { # A text item. # Displays a title and description on the page.
      },
      &quot;title&quot;: &quot;A String&quot;, # The title of the item.
      &quot;videoItem&quot;: { # An item containing a video. # Displays a video on the page.
        &quot;caption&quot;: &quot;A String&quot;, # The text displayed below the video.
        &quot;video&quot;: { # Data representing a video. # Required. The video displayed in the item.
          &quot;properties&quot;: { # Properties of the media. # Properties of a video.
            &quot;alignment&quot;: &quot;A String&quot;, # Position of the media.
            &quot;width&quot;: 42, # The width of the media in pixels. When the media is displayed, it is scaled to the smaller of this value or the width of the displayed form. The original aspect ratio of the media is preserved. If a width is not specified when the media is added to the form, it is set to the width of the media source. Width must be between 0 and 740, inclusive. Setting width to 0 or unspecified is only permitted when updating the media source.
          },
          &quot;youtubeUri&quot;: &quot;A String&quot;, # Required. A YouTube URI.
        },
      },
    },
  ],
  &quot;linkedSheetId&quot;: &quot;A String&quot;, # Output only. The ID of the linked Google Sheet which is accumulating responses from this Form (if such a Sheet exists).
  &quot;publishSettings&quot;: { # The publishing settings of a form. # Output only. The publishing settings for a form. This field isn&#x27;t set for legacy forms because they don&#x27;t have the publish_settings field. All newly created forms support publish settings. Forms with publish_settings value set can call SetPublishSettings API to publish or unpublish the form.
    &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
      &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
      &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
    },
  },
  &quot;responderUri&quot;: &quot;A String&quot;, # Output only. The form URI to share with responders. This opens a page that allows the user to submit responses but not edit the questions. For forms that have publish_settings value set, this is the published form URI.
  &quot;revisionId&quot;: &quot;A String&quot;, # Output only. The revision ID of the form. Used in the WriteControl in update requests to identify the revision on which the changes are based. The format of the revision ID may change over time, so it should be treated opaquely. A returned revision ID is only guaranteed to be valid for 24 hours after it has been returned and cannot be shared across users. If the revision ID is unchanged between calls, then the form *content* has not changed. Conversely, a changed ID (for the same form and user) usually means the form *content* has been updated; however, a changed ID can also be due to internal factors such as ID format changes. Form content excludes form metadata, including: * sharing settings (who has access to the form) * publish_settings (if the form supports publishing and if it is published)
  &quot;settings&quot;: { # A form&#x27;s settings. # The form&#x27;s settings. This must be updated with UpdateSettingsRequest; it is ignored during CreateForm and UpdateFormInfoRequest.
    &quot;emailCollectionType&quot;: &quot;A String&quot;, # Optional. The setting that determines whether the form collects email addresses from respondents.
    &quot;quizSettings&quot;: { # Settings related to quiz forms and grading. These must be updated with the UpdateSettingsRequest. # Settings related to quiz forms and grading.
      &quot;isQuiz&quot;: True or False, # Whether this form is a quiz or not. When true, responses are graded based on question Grading. Upon setting to false, all question Grading is deleted.
    },
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="setPublishSettings">setPublishSettings(formId, body=None, x__xgafv=None)</code>
  <pre>Updates the publish settings of a form. Legacy forms aren&#x27;t supported because they don&#x27;t have the `publish_settings` field.

Args:
  formId: string, Required. The ID of the form. You can get the id from Form.form_id field. (required)
  body: object, The request body.
    The object takes the form of:

{ # Updates the publish settings of a Form.
  &quot;publishSettings&quot;: { # The publishing settings of a form. # Required. The desired publish settings to apply to the form.
    &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
      &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
      &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
    },
  },
  &quot;updateMask&quot;: &quot;A String&quot;, # Optional. The `publish_settings` fields to update. This field mask accepts the following values: * `publish_state`: Updates or replaces all `publish_state` settings. * `&quot;*&quot;`: Updates or replaces all `publish_settings` fields.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # The response of a SetPublishSettings request.
  &quot;formId&quot;: &quot;A String&quot;, # Required. The ID of the Form. This is same as the Form.form_id field.
  &quot;publishSettings&quot;: { # The publishing settings of a form. # The publish settings of the form.
    &quot;publishState&quot;: { # The publishing state of a form. # Optional. The publishing state of a form. When updating `publish_state`, both `is_published` and `is_accepting_responses` must be set. However, setting `is_accepting_responses` to `true` and `is_published` to `false` isn&#x27;t supported and returns an error.
      &quot;isAcceptingResponses&quot;: True or False, # Required. Whether the form accepts responses. If `is_published` is set to `false`, this field is forced to `false`.
      &quot;isPublished&quot;: True or False, # Required. Whether the form is published and visible to others.
    },
  },
}</pre>
</div>

</body></html>